package com.ykt.service;

import com.jfinal.aop.Before;
import com.jfinal.plugin.activerecord.tx.Tx;
import com.ykt.model.UserFeedback;

/**
 * @author long.hua
 * @version 1.0.0
 * @since 2016-01-11 22:33
 */
public class UserFeedbackService {

    @Before(Tx.class)
    public int save(UserFeedback feedback){
        feedback.save();
        return feedback.get("id");
    }

}
